package cn.jbt.common;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageQryParam<T> {

    @NotNull(message = "当前页码不能为空")
    @Min(value = 1, message = "当前页码‘值’错误")
    public Long page;

    @NotNull(message = "分页大小不能为空")
    @Min(value = 1, message = "分页大小‘值’错误")
    public Long size;

    public T param;
}
